package operator.function.do_;

import io.reactivex.Observable;
import io.reactivex.functions.Consumer;
import util.Printer;
import util.RxJavaHelper;

class DoAfterNextOperator {

    public static void main(String[] args) {
        doAfterNext();
    }

    static void doAfterNext(){
        Observable.just(1)
                .doAfterNext(new Consumer<Integer>() {
                    @Override
                    public void accept(Integer integer) throws Exception {
                        Printer.print("doAfterNext integer = " + integer);
                    }
                })
                .subscribe(RxJavaHelper.getConsumer());
    }


}
